// MenuBuilder.java
package sonet.textui.message;
import ist.po.ui.Command;
import ist.po.ui.Menu;
import sonet.textui.*;

public class MenuBuilder {
	public static void menuFor(BrowsingState state) {
		Menu menu = new Menu(MenuEntry.TITLE, new Command<?>[] {
				new ListInbox(state),
				new ListOutbox(state),
				new ShowMessage(state),
				new SendMessage(state),
				new ReplyToMessage(state),
				new ForwardMessage(state),
				new RemoveMessage(state),
				new EnableMessages(state),
				new DisableMessages(state),
				});
		menu.open();
	}	
}
